package com.kmxd.ams.client.use;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kmxd.ams.client.search.vo.SearchAuthVO;
import com.kmxd.ams.client.use.dto.*;
import com.kmxd.ams.client.use.vo.UsePushListVO;
import com.kmxd.ams.client.use.vo.UsePushVO;
import com.kmxd.ams.infra.use.entity.UsePush;
import java.util.List;

/**
 * 推送表 服务类
 *
 * @author nickbi
 * @since 2023-01-11
 */
public interface IUsePushSvc extends IService<UsePush> {

  /**
   * 分页查询
   *
   * @param reqPage
   * @param req
   * @return
   */
  Page<UsePushListVO> selectPage(Page reqPage, UsePushQueryDTO req);

  /**
   * 查询列表
   *
   * @param req
   * @return
   */
  List<UsePushListVO> selectList(UsePushQueryDTO req);

  Page<UsePushListVO> applyPage(Page reqPage, UsePushQueryDTO req);

  Page<UsePushListVO> pushPage(Page reqPage, UsePushQueryDTO req);

  /**
   * 新增
   *
   * @param req
   */
  void add(UsePushAddDTO req);

  /**
   * 修改
   *
   * @param req
   */
  void edit(UsePushEditDTO req);

  /**
   * 删除
   *
   * @param ids
   */
  void remove(String ids);

  /**
   * 查看
   *
   * @param id
   * @return
   */
  UsePushVO view(Long id);

  UsePushVO viewPush(Long id, Long userId);

  SearchAuthVO getAuth(UsePushAuthQueryDTO req);

  void operate(UsePushOperateDTO req);

}
